﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace Worms3003
{
    class Sons
    {
        Song musicaFundo;
        KeyboardState tecladoAtual;



        Sons(Song newMusicaFundo)
        {
            musicaFundo = newMusicaFundo;
        }

        public void Update()
        {
            tecladoAtual = Keyboard.GetState();
           
            if (tecladoAtual.IsKeyDown(Keys.P))
            {
                MediaPlayer.Play(musicaFundo);
            }
        }

    }
}
